/*
*
* A helper function for creating the masking effect
*
*/

function mask(el, on, msg){
	if(on){
		//if(navigator.appName == "Microsoft Internet Explorer")
		//	el.style.filters.alpha.opacity = 40;
		//else el.style.opacity = 0.4;
		try{el.style.opacity = 0.4} catch(e) {el.style.filters.alpha.opacity = 40}
		//mask.style.visibility = "visible";
		//loading.style.visibility = "visible";
	} else {
		//if(navigator.appName == "Microsoft Internet Explorer")
		//	el.style.filters.alpha.opacity = 100;
		//else el.style.opacity = 1;
		try{el.style.opacity = 1} catch(e) {el.style.filters.alpha.opacity = 100}
		//mask.style.visibility = "hidden";
		//loading.style.visibility = "hidden";
	}
}
